<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%> 
<%@ taglib prefix="s" uri="/struts-tags"%>    
<% 
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Add Nature</title>

<link href="/gxjc/view/css/bootstrap.min.css" rel="stylesheet">
<link href="/gxjc/view/css/datepicker3.css" rel="stylesheet">
<link href="/gxjc/view/css/styles.css" rel="stylesheet">

<!--[if lt IE 9]>
<script src="/gxjc/view/js/html5shiv.js"></script>
<script src="/gxjc/view/js/respond.min.js"></script>
<![endif]-->

</head>

<body>
	<!-- 顶部开始 -->
	<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
		<div class="container-fluid">
			<div class="navbar-header">				
				<a class="navbar-brand" href="#"><span>国信</span>现代农业物联网系统</a>
				<ul class="user-menu">
					<li class="dropdown pull-right">
						<a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="glyphicon glyphicon-user"></span> <s:property value="#session.User.username"/> <span class="caret"></span></a>
						<ul class="dropdown-menu" role="menu">
							<!-- <li><a href="#"><span class="glyphicon glyphicon-user"></span> Profile</a></li>
							<li><a href="#"><span class="glyphicon glyphicon-cog"></span> Settings</a></li> -->
							<li><a href="/gxjc/view/logout.jsp"><span class="glyphicon glyphicon-log-out"></span> Logout</a></li>
						</ul>
					</li>
				</ul>
			</div>
		</div><!-- /.container-fluid -->
	</nav>
		<!-- 顶部结束 -->
		<!-- 左侧导航开始 -->
	<div id="sidebar-collapse" class="col-sm-3 col-lg-2 sidebar">
		<ul class="nav menu">
			<li><a href="/gxjc/nodedata_informationView"><span class="glyphicon glyphicon-dashboard"></span>当前状态</a></li>
			<li><a href="/gxjc/view/nodedata_hestoryView"><span class="glyphicon glyphicon-th"></span>历史记录</a></li>
			<li><a href="#"><span class="glyphicon glyphicon-stats"></span>账户管理</a></li>
			<li><a href="#"><span class="glyphicon glyphicon-list-alt"></span>系统设置</a></li>
			<!--
			铅笔图标
			<li><a href="/gxjc/view/forms.html"><span class="glyphicon glyphicon-pencil"></span> </a></li>
			叹号图标
			<li><a href="panels.html"><span class="glyphicon glyphicon-info-sign"></span> Alerts &amp; Panels</a></li>
			 -->
			 <li class="parent ">
				<a href="#">
					<span class="glyphicon glyphicon-list"></span>数据管理<span data-toggle="collapse" href="#sub-item-1" class="icon pull-right"><em class="glyphicon glyphicon-s glyphicon-plus"></em></span> 
				</a>
				<ul class="nav menu" id="sub-item-1">
					<li>
						<a class="" href="/gxjc/view/nodedata_preview">
							<span class="glyphicon glyphicon-share-alt"></span> 添加数据
						</a>
					</li>
					<li>
						<a class="" href="/gxjc/view/addNode.html">
							<span class="glyphicon glyphicon-share-alt"></span> 添加节点
						</a>
					</li>
					<li>
						<a class="" href="/gxjc/view/addHome.html">
							<span class="glyphicon glyphicon-share-alt"></span> 添加棚室
						</a>
					</li>
					<li>
						<a class="" href="/gxjc/view/home_distribute">
							<span class="glyphicon glyphicon-share-alt"></span> 分配节点
						</a>
					</li>	
					<li class="active">
						<a class="" href="/gxjc/view/addNature.html">
							<span class="glyphicon glyphicon-share-alt"></span> 添加属性
						</a>
					</li>			
				</ul>
			</li>
		</ul>
	</div><!--/.sidebar-->
		<!-- 左侧导航结束---------------------------------------------------------------- -->
	<div class="col-sm-9 col-sm-offset-3 col-lg-10 col-lg-offset-2 main">			
		<div class="row">
			<ol class="breadcrumb">
				<li><a href="#"><span class="glyphicon glyphicon-home"></span></a></li>
				<li class="active">Add Nature</li>
			</ol>
		</div><!--/.row-->
		<div class="row">
			<div class="col-lg-12">
				<div class="panel panel-default">
					<div class="panel-heading">添加属性</div>
					<div class="panel-body">
						<div class="col-md-6">
							<form role="form" method="post" action="/gxjc/nature_add">
								<div class="form-group">
									<label>Name</label>
									<input type="text" name="name" class="form-control" placeholder=""/>
								</div>
								<div class="form-group">
									<label>Max</label>
									<input type="text" name="max" class="form-control"/>
								</div>	
								<div class="form-group">
									<label>Min</label>
									<input type="text" name="min" class="form-control"/>
								</div>																
								
								<button type="submit" class="btn btn-primary">Submit</button>
								<button type="reset" class="btn btn-default">Reset</button>
							</form>
						</div>
					</div>
				</div>
			</div><!-- /.col-->
		</div><!-- /.row -->
		
	</div><!--/.main-->

	<script src="/gxjc/view/js/jquery-1.11.1.min.js"></script>
	<script src="/gxjc/view/js/bootstrap.min.js"></script>
	<script src="/gxjc/view/js/chart.min.js"></script>
	<script src="/gxjc/view/js/chart-data.js"></script>
	<script src="/gxjc/view/js/easypiechart.js"></script>
	<script src="/gxjc/view/js/easypiechart-data.js"></script>
	<script src="/gxjc/view/js/bootstrap-datepicker.js"></script>
	<script>
		!function ($) {
			$(document).on("click","ul.nav li.parent > a > span.icon", function(){		  
				$(this).find('em:first').toggleClass("glyphicon-minus");	  
			}); 
			$(".sidebar span.icon").find('em:first').addClass("glyphicon-plus");
		}(window.jQuery);

		$(window).on('resize', function () {
		  if ($(window).width() > 768) $('#sidebar-collapse').collapse('show')
		})
		$(window).on('resize', function () {
		  if ($(window).width() <= 767) $('#sidebar-collapse').collapse('hide')
		})
	</script>	
</body>

</html>
